-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Add pulp-ui to pulp image #677
base: latest
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it a lot.
|
||
RUN <<EOF | ||
if [[ "$PULP_UI_URL" ]]; then | ||
mkdir -p /usr/share/nginx/static/pulp_ui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the new /var/www ?
It's OK...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where should these files live? I was thinking I could put them in the pulp static directory (default: /var/lib/operator/static/), but I was worried if the user ran collectstatic with --clean then they would lose their UI as well.
|
||
ENV PULP_UI=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably depend on PULP_UI_URL... Or let's just make PULP_UI_URL the env var?
@@ -105,6 +105,17 @@ http { | |||
|
|||
include pulp/*.conf; | |||
|
|||
{% if ui | default(false) -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be if ui_url != ""
?
There's many different ways to serve these files, here's one way I chose. Would like some feedback on this approach.
TODO: